package interfaceDao;

import essenceClasses.CurrentTask;

import java.sql.SQLException;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: user
 * Date: 01.06.14
 * Time: 10:39
 * To change this template use File | Settings | File Templates.
 */
public interface ICurrentTaskDao {
    public boolean addCurrentTask(int taskID, int creatorID, String status, int recepientID) throws SQLException;

    public List<CurrentTask> getCurrentTasksById(int taskID) throws SQLException;

    public List<CurrentTask> getCurrentTasksByCreatorId(int id) throws SQLException;

    public List<CurrentTask> getCurrentTasksByRecepientId(int id) throws SQLException;

    public boolean deleteCurrentTaskById(int id) throws SQLException;

    public boolean changeStateCurrentTaskById(int id, int state) throws SQLException;


}
